package com.hc.acoustics

import android.app.Application
import cn.bmob.v3.Bmob
import com.tencent.bugly.crashreport.CrashReport
import com.yc.yclibrary.YcInit
import com.yc.yclibx.YcUtilsInit
import com.tencent.bugly.crashreport.CrashReport.UserStrategy
import androidx.multidex.MultiDex
import com.yc.yclibx.comment.YcUtilVersion
/**
 *
 */
class App : Application() {
    override fun onCreate() {
        super.onCreate()
        MultiDex.install(this)
        YcInit.init(this, "")
        YcUtilsInit.init(this)
        Bmob.initialize(this, "e60e473578634e64c0547300f523110e")
        // 设置是否为上报进程
        val strategy = UserStrategy(this)
        strategy.appVersion = YcUtilVersion.getVersionCode().toString()
        CrashReport.putUserData(this, "SystemVersion", android.os.Build.VERSION.RELEASE)
        CrashReport.putUserData(this, "SystemModel", android.os.Build.MODEL)
        CrashReport.putUserData(this, "DeviceBrand", android.os.Build.BRAND)
        CrashReport.initCrashReport(this, "9f4e94fa51", false)
    }
}